package com.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.pojo.LdbzIndexSlideAd;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface LdbzIndexSlideAdMapper extends BaseMapper<LdbzIndexSlideAd> {
    List<LdbzIndexSlideAd> getIndexSlideAdPage(@RequestParam(value = "entity") LdbzIndexSlideAd entity, @RequestParam(value = "start") int start, @RequestParam("limit") int limit);
    Long countByEntity(@RequestParam(value = "entity") LdbzIndexSlideAd entity);
    LdbzIndexSlideAd selectByKey(@RequestParam("id") Long id);
    int deleteByKey(@RequestParam("id") Long id);
    int deleteByKeys(@RequestParam("ids") List<Long> ids);
    int insertByEntity(@RequestParam("entity") LdbzIndexSlideAd entity);
    int updateByKey(@RequestParam("entity") LdbzIndexSlideAd entity);
    List<LdbzIndexSlideAd> selectByEntity(@Param("entity")LdbzIndexSlideAd entity , @Param("start")int start , @Param("limit")int limit);
}
